<!DOCTYPE html>
<html lang="zh-CN">
<head>
	<meta charset="utf-8">
	<title>图书管理系统注册</title>
	<!-- 引入Pacifico手写字体（与登录页一致） -->
	<link rel="preconnect" href="https://fonts.googleapis.com">
	<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
	<link href="https://fonts.googleapis.com/css2?family=Pacifico&display=swap" rel="stylesheet">
	<style>
		/* 全局样式重置与基础设置：完全复用登录页逻辑 */
		* {
			margin: 0;
			padding: 0;
			box-sizing: border-box;
			font-family: 'Pacifico', cursive; /* 全局手写字体统一 */
		}

		body {
			/* 紫金色科技风背景：与登录页完全一致的渐变+点阵 */
			background: linear-gradient(135deg, #1A0F3D 0%, #3D1A6D 100%);
			min-height: 100vh;
			display: flex;
			justify-content: center;
			align-items: center;
			background-image:
					radial-gradient(rgba(212, 175, 55, 0.1) 1px, transparent 1px),
					linear-gradient(135deg, #1A0F3D 0%, #3D1A6D 100%);
			background-size: 20px 20px;
			background-position: 0 0, 0 0;
			overflow: hidden;
		}

		/* 背景科技光效：与登录页一致的淡金辐射效果 */
		body::before {
			content: "";
			position: fixed;
			top: 50%;
			left: 50%;
			transform: translate(-50%, -50%);
			width: 600px;
			height: 600px;
			background: radial-gradient(circle, rgba(212, 175, 55, 0.2) 0%, transparent 70%);
			border-radius: 50%;
			z-index: 0;
			filter: blur(60px);
		}

		/* 注册容器：与登录页一致的科技风卡片 */
		.register-container {
			width: 32%;
			min-width: 300px;
			padding: 45px 35px;
			background: rgba(255, 255, 255, 0.05);
			backdrop-filter: blur(10px); /* 毛玻璃效果统一 */
			border: 1px solid rgba(212, 175, 55, 0.2);
			border-radius: 12px;
			box-shadow:
					0 8px 32px rgba(0, 0, 0, 0.2),
					0 0 10px rgba(212, 175, 55, 0.1) inset;
			position: relative;
			z-index: 1;
		}

		/* 容器顶部光带：与登录页一致的鎏金渐变 */
		.register-container::before {
			content: "";
			position: absolute;
			top: 0;
			left: 0;
			width: 100%;
			height: 3px;
			background: linear-gradient(90deg, #D4AF37, #F9F292, #D4AF37);
		}

		/* 标题样式：与登录页一致的鎏金渐变文字 */
		.register-container h3 {
			color: #fff;
			font-size: 28px;
			text-align: center;
			margin-bottom: 35px;
			letter-spacing: 1.5px;
			background: linear-gradient(90deg, #D4AF37, #F9F292);
			-webkit-background-clip: text;
			background-clip: text;
			color: transparent;
			text-shadow: 0 0 8px rgba(212, 175, 55, 0.3);
		}

		/* 表单样式：适配多输入框的纵向布局 */
		.register-form {
			display: flex;
			flex-direction: column;
			gap: 20px; /* 间距微调，适配3个输入框的紧凑感 */
			align-items: center;
		}

		/* 输入框样式：与登录页完全一致 */
		.register-form input[type="text"],
		.register-form input[type="password"] {
			width: 240px;
			height: 42px;
			padding: 0 15px;
			background: rgba(255, 255, 255, 0.08);
			border: 1px solid rgba(212, 175, 55, 0.3);
			border-radius: 6px;
			color: #F9F292;
			font-size: 16px;
			transition: all 0.3s ease;
			outline: none;
		}

		/* 输入框聚焦效果：与登录页统一的鎏金高亮 */
		.register-form input[type="text"]:focus,
		.register-form input[type="password"]:focus {
			border-color: #D4AF37;
			box-shadow: 0 0 8px rgba(212, 175, 55, 0.4);
			background: rgba(255, 255, 255, 0.1);
		}

		/* 占位符样式：与登录页一致的淡金配色 */
		.register-form input::placeholder {
			color: rgba(212, 175, 55, 0.6);
		}

		/* 注册按钮：与登录页一致的紫金渐变+流动光效 */
		.register-form input[type="submit"] {
			width: 240px;
			height: 44px;
			background: linear-gradient(90deg, #3D1A6D, #5A2A9E);
			border: 1px solid #D4AF37;
			border-radius: 6px;
			color: #F9F292;
			font-size: 18px;
			cursor: pointer;
			transition: all 0.3s ease;
			position: relative;
			overflow: hidden;
		}

		/* 按钮流动光效：与登录页逻辑完全一致 */
		.register-form input[type="submit"]::after {
			content: "";
			position: absolute;
			top: 0;
			left: -100%;
			width: 100%;
			height: 100%;
			background: linear-gradient(90deg, transparent, rgba(212, 175, 55, 0.2), transparent);
			transition: left 0.6s ease;
		}

		.register-form input[type="submit"]:hover {
			background: linear-gradient(90deg, #5A2A9E, #7B3ADB);
			transform: translateY(-2px);
			box-shadow: 0 4px 12px rgba(212, 175, 55, 0.3);
		}

		.register-form input[type="submit"]:hover::after {
			left: 100%;
		}

		.register-form input[type="submit"]:active {
			transform: translateY(0);
			box-shadow: 0 2px 6px rgba(212, 175, 55, 0.2);
		}

		/* 登录链接：与登录页链接风格统一 */
		.login-link {
			margin-top: 18px; /* 适配多输入框后的间距平衡 */
			color: rgba(212, 175, 55, 0.8);
			font-size: 15px;
			text-decoration: none;
			transition: all 0.3s ease;
		}

		.login-link:hover {
			color: #F9F292;
			text-decoration: underline;
			text-underline-offset: 3px;
			text-shadow: 0 0 6px rgba(212, 175, 55, 0.4);
		}

		/* 响应式适配：与登录页完全一致的适配逻辑 */
		@media (max-width: 768px) {
			.register-container {
				width: 85%;
				padding: 35px 25px;
			}

			.register-container h3 {
				font-size: 24px;
			}

			.register-form input[type="text"],
			.register-form input[type="password"],
			.register-form input[type="submit"] {
				width: 220px;
			}

			.login-link {
				font-size: 14px;
			}
		}
	</style>
</head>
<body>
<div class="register-container">
	<h3>图书管理系统注册</h3>
	<form action="/users/execu_register" method="post" class="register-form">
		<input type="text" name="userEmail" placeholder="请输入邮箱" />
		<input type="password" name="password" placeholder="请输入密码" />
		<input type="text" name="username" placeholder="请输入名字" />
		<input type="submit" value="注册" />
		<a href="/users/login" class="login-link">已经有账号？去登录</a>
	</form>
</div>
</body>
</html>
